package com.lxlg.lxlg_order.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxlg.core.utils.Result;
import com.lxlg.lxlg_order.client.param.SeckillOrderForm;
import com.lxlg.lxlg_order.client.result.SeckillOrderInfo;
import com.lxlg.lxlg_order.infra.model.SeckillOrder;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kevin
 * @since 2022-04-28
 */
public interface SeckillOrderService extends IService<SeckillOrder> {


    Result<SeckillOrderInfo> addSeckillOrder(SeckillOrderForm seckillOrderForm);

    Result<String> cancleSeckillOrder(String message);


    void doPaySeckillOrder(String seckillOrderCode, HttpServletResponse resp) throws IOException;

    void seckillorderPayBack(String orderCode);

}
